<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Untitled Document</title>
<link href="http://www.paipai.com/css/common.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="http://static.paipaiimg.com/js/base.js?t=20091222" check="base.js" charset="gb2312"></script>
<script type="text/javascript" src="http://static.paipaiimg.com/js/pp.js?t=20090505" charset="gb2312"></script>
<script type="text/javascript" src="http://static.paipaiimg.com/js/pp.ui.js?t=20090505" charset="gb2312"></script>
<script type="text/javascript" src="http://static.paipaiimg.com/js/pp.classattr.20100316.js?t=20100223" charset="gb2312"></script>

<style>
#classAttrDiv{ padding:0px;  border:1px solid #FFF; width:500px;margin-left:-40px;margin-top
:10px;  }
#classAttrDiv select{  margin-bottom:2px;}
.cts div{ clear:both; height:auto;}
.cts p,.cts span{ float:left;}
.cst2,.cts3,.cts4,.cts5,.cts6,.cts7,.cts1{line-height:20px; width:auto; float:left; }
.cts1{ width:330px; }
.cts2{ width:120px; text-align:right; height:20px; overflow:hidden; white-space:nowrap;}
</style>
</head>
<form name="form1" method="post" enctype="multipart/form-data" action="" id="form1" target="_top">
  <input type="text"  style="display:none" name="dwLeafClassId" id="dwLeafClassId" value="<%$dwLeafClassId$%>">
  <input type="text"  style="display:none"  name="PClassAttr" id="PClassAttr" value="<%$PClassAttr$%>">
  <input type="text"  style="display:none"  name="CustomAttr" id="CustomAttr" value="<%$CustomAttr$%>">
  <input type="text"  style="display:none"  name="IsAllDefaultSelect" id="IsAllDefaultSelect" value="">
  <input type="text"  style="display:none"  name="productid" id="productid" value=""> 
  <dd><div id="classAttrDiv" ></div> </dd>
</form>
<body>
<div id="spuAlertInfo"></div>
</body>
</html>
<script >
/*
$$(document).ready(function(){
	window.g_Attr=$classAttr({
		area:"#classAttrDiv",
		var1:"#PClassAttr",
		var2:"#CustomAttr",
		classId:$$("#dwLeafClassId").val(),
		showHelp:false
	});
});
*/
function SetValue(nClassID,strClassAttr,strCustomAttr)
{	
	if(document.getElementById("spuAlertInfo")){
		document.getElementById("spuAlertInfo").outerHTML="";
	}
	document.getElementById("PClassAttr").value=strClassAttr;
	document.getElementById("CustomAttr").value=strCustomAttr;
	window.g_Attr=$classAttr({
		area:"#classAttrDiv",
		var1:"#PClassAttr",
		var2:"#CustomAttr",
		classId:nClassID,//20556,
		showHelp:false
	}); 
	if(!document.getElementById("")){
		
	}
}
function PAValidate()
{
	var r=g_Attr.check();
	form1.IsAllDefaultSelect.value = r;
}

SetValue("203320","")
</script>
